#include "StdAfx.h"
#include "ClassLib1.h"

ClassLib1::ClassLib1(void)
{
	number=0;
	name="No name yet";
}

ClassLib1::~ClassLib1(void)
{
}
void ClassLib1::Show()
{
	cout<<"=============Show Method Called.============"<<endl;
	cout<<GetName()<<endl;
	cout<<GetString()<<endl;
	cout<<"============================================"<<endl;
}

int ClassLib1::GetNumber()
{
	return number;
}

void ClassLib1::SetNumber(int newNumber)
{
	number=newNumber;
}

string ClassLib1::GetString()
{
	string result;
	char   temp[64]; 
	sprintf_s(temp,   "%d ",   number); 
	result="The number is: " + string(temp);	
	result+="\nThis is latest version. V1.8";
	return result;
}

string ClassLib1::GetName()
{
	string result="The name is: ";
	result+=name;
	return result;
}

void ClassLib1::SetName(string newName)
{
	name=newName;
}